"""
@FileName：3偶数的分解式.py
@Author：lmz
@Time：2021/5/18 18:48
循环200以内所有偶数，打印出它的分解式，每6个式子一行
"""
def fun(shu):
    for i in range(2, shu):
        if shu % i == 0:
            break
    else:
        return shu
count = 0
for oushu in range(4, 202, 2):
    cishu = 1

    for k in range(2, 202):
        kk = fun(k)
        if kk == None:
            continue

        for p in range(2, 202):
            pp = fun(p)
            if pp == None:
                continue
            if oushu == kk + pp:
                if cishu == 1:
                    cishu = 0
                    print(f'{oushu} = {kk} + {pp}  ', end='')

                    count = count + 1
                    if count % 6 == 0:
                        print()